package com.baor.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "wechat_payment_failure")
public class PaymentFailedVO {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private BigDecimal amount;
    private String applicationTime;
    private String accountTyper;
    private Date createAt;
    private Date updateAt;

    // 新增失败原因字段（对应withdrawal_record的note）
    @TableField("note")
    private String note;

    // 新增关联用户信息字段（非数据库字段）
    @TableField(exist = false)
    private String username; // 姓名
    @TableField(exist = false)
    private String phone; // 手机号
}